<div style="margin-left: 0px; margin-top: 0px; width: 500px; height: 65px;" class="contentContanier">
        <div class="contentToolbar">
          <a href="javascript:editPageSeoProperties(<?= $this->page->page_id ?>)"><img height="16" width="16" src="/cms/images/document_pencil.gif"/></a>
        </div>
        <div class="contentTitle">SEO</div>
        <div style="clear: both; float: none;"></div>
        <div class="contentDescription">Редактирование опций по поисковой оптимизации</div>
      </div>
      
<?php
$content_list = $this->page->template->getContentList();
for ($p=0;$p<count($content_list);$p++) { 
	$contentItem = $this->page->getContent($content_list[$p]['key_name']);
	if (!$contentItem) {
		if (is_null($content_list[$p]['type'])) {
			$contenttStnd = $this->page->template->getStndContent($content_list[$p]['id']);
			$contentItem = $this->page->link($contenttStnd['id'],$contenttStnd['type'],$content_list[$p]['key_name']);
		} else {
			$contentItem = $this->page->add($content_list[$p]['type'],$content_list[$p]['key_name']);
		}
	} 
?>
      <div class="contentContanier" style="margin-left:<?= $content_list[$p]['x'] ?>px;margin-top:<?= $content_list[$p]['y'] ?>px;width:<?= $content_list[$p]['width'] ?>px;height:<?= $content_list[$p]['height'] ?>px">
        <div class="contentToolbar">
<?php if ($content_list[$p]['can_hide']=="1") { ?>
<a href="javascript:;"><img src="/cms/images/eye<?= $contentItem->hidden_f=='1' ? '_disabled' : ''?>.png" onclick="disableContent(this,'<?= $contentItem->page_id ?>','<?= $contentItem->key_name ?>')" /></a>
<?php }?>
<?php
if ( $contentItem->content_type == 'placeholder') {
	$phItem = $contentItem->data;
?>
          <a href="javascript:placeholderActions.add(<?= $phItem->placeholder_id ?>)"><img src="/cms/images/document_plus.gif" width="16" height="16" border="0" /></a>
<?php } else {?>
        <a href="javascript:loadContent('<?= $contentItem->data->_content_id ?>','<?= $contentItem->content_type ?>',null)"><img src="/cms/images/document_pencil.gif" width="16" height="16" /></a>
<?php }?>         
          </div>
        <div class="contentTitle"><?= $content_list[$p]['name'] ?></div>
        <div  style="clear:both;float:none"></div>
<?php if ( $contentItem->content_type == 'placeholder') {
$this->content_list = $phItem;
?>
<div id="placeholder_<?= $phItem->placeholder_id ?>">
<?= $this->render('placeholder/index.phtml')?>
</div>

<?php } else {?>
        <div class="contentDescription"><?= $content_list[$p]['description'] ?></div>
<?php }?>
      </div>
<?php } ?>
      <img src="/cms/template/image/file/<?= $this->page->template->getAttr('image') ?>" border="0" />